package com.open.capacity.notice.provider.wechat.chain.context;

import java.io.IOException;
import java.util.Map;
import java.util.function.Consumer;

import org.apache.commons.chain.impl.ContextBase;

import com.open.capacity.notice.provider.core.http.interactive.req.ThRequest;
import com.open.capacity.notice.provider.wechat.WechatTemplate;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
@SuppressWarnings("serial")
public class WechatMessageContext extends ContextBase {
	
	private WechatTemplate wechatTemplate ;
	
	private ThRequest req;

	private Consumer<Map<String, Object>> success;

	private Consumer<IOException> failure;
}
